import IMiddleware from "./IMiddleware";

// 路由声明对象定义
interface IRoute<Meta = any> {
  // 路由名称
  name?: string;
  // 页面路径
  path: string;
  // 页面跳转过程中传递的元信息
  meta?: Meta;
  // 进入路由前的路由中间件
  beforeRouteEnter?: IMiddleware[];
  // 导航离开路由时调用
  beforeRouteLeave?: IMiddleware[];
}

export default IRoute;
